package org.hxzon.workeasy.components;

import org.apache.tapestry5.BindingConstants;
import org.apache.tapestry5.annotations.InjectPage;
import org.apache.tapestry5.annotations.OnEvent;
import org.apache.tapestry5.annotations.Parameter;
import org.apache.tapestry5.annotations.Property;
import org.hxzon.workeasy.pages.test.TestFindJob;

public class JobForm {
    @Parameter(defaultPrefix = BindingConstants.LITERAL, value = "_self")
    @Property
    private String target;
    @Parameter
    @Property
    private String username;
    @Parameter
    @Property
    private int year;
    @Parameter
    @Property
    private int month;
    @Parameter
    @Property
    private int date;
    @Parameter
    @Property
    private int hour;
    @Parameter
    @Property
    private int minute;
    @InjectPage
    private TestFindJob testFindJob;

    @OnEvent(component = "search")
    Object search() {
        return testFindJob.initialize(username, year, month, date, hour, minute, 50, 1);
    }

}
